package com.caidan.common.util;

import java.util.regex.Pattern;
import java.util.regex.Matcher;  
  
public class PhoneNumberValidator {  
  
    private static final Pattern PHONE_PATTERN = Pattern.compile("^1[3-9]\\d{9}$");  
  
    public static boolean isValidPhoneNumber(String phoneNumber) {  
        if (phoneNumber == null || phoneNumber.isEmpty()) {  
            return false;  
        }  
        Matcher matcher = PHONE_PATTERN.matcher(phoneNumber);  
        return matcher.matches();  
    }
}
